package com.gitee.melin.bee.core.jdbc;

import java.util.LinkedList;
import lombok.Builder;
import lombok.Getter;

@Getter
@Builder(builderClassName = "Builder", setterPrefix = "with")
public class QueryResult {
    private LinkedList<String> columnNames;

    private LinkedList<String> columnClassNames;

    private LinkedList<String> columnTypes;

    private LinkedList<LinkedList<Object>> rows;

    public QueryResult() {}

    public QueryResult(
            LinkedList<String> columnNames,
            LinkedList<String> columnClassNames,
            LinkedList<String> columnTypes,
            LinkedList<LinkedList<Object>> rows) {
        this.columnNames = columnNames;
        this.columnClassNames = columnClassNames;
        this.columnTypes = columnTypes;
        this.rows = rows;
    }
}
